<?php drupal_add_css(drupal_get_path('module', 'excel').'/excel.css'); ?>
<div id='search'>
<?php print render($variables['form']); ?>
<div>
<table id='asd'>
	<tr>
		<th>name</th>
		<th>status</th>
		<th>rating</th>
		<th>description</th>
		<th>department</th>
		<th>line</th>
		<th>i_e</th>
		<th>操作</th>
	</tr>
<?php
	foreach($variables['excel'] as $arr){
		$arr=get_object_vars($arr);
		print "<tr>";
		foreach($arr as $k=>$v){
			if($k!=='id'){
				print "<td>".$k."--".$v."</td>";
			}	
		}
		print "<td>".l('编辑','admin/structure/excel/edit',array('query'=>array('id'=>$arr['id'])))."</td>";
		print "</tr>";
}
?>
</table>


